//
//  GrabOrder_NavBar.m
//  LogisticsSupplier
//
//  Created by 吕晶 on 2021/3/15.
//  Copyright © 2021 吕晶. All rights reserved.
//

#import "GrabOrder_NavBar.h"

@implementation GrabOrder_NavBar

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        
        UILabel *titleLab = [UILabel new];
        titleLab.text = @"抢 单";
        titleLab.font = BoldFontOfSize(20);
        titleLab.textColor = HexColor(0xffffff);
        [titleLab sizeToFit];
        titleLab.nim_centerX = ScreenW * 0.5;
        titleLab.nim_centerY = (NaviHeight - StatusBarHeight) * 0.5;
        [self addSubview:titleLab];
        
        UILabel *leftLab = [[UILabel alloc] initWithFrame:CGRectMake(titleLab.nim_left - 20 - 66, (titleLab.nim_height - 1) * 0.5 + titleLab.nim_top, 66, 1)];
        leftLab.backgroundColor = HexColor(0xffffff);
        [self addSubview:leftLab];
        
        UILabel *rightLab = [[UILabel alloc] initWithFrame:CGRectMake(titleLab.nim_right + 20, (titleLab.nim_height - 1) * 0.5 + titleLab.nim_top, 66, 1)];
        rightLab.backgroundColor = HexColor(0xffffff);
        [self addSubview:rightLab];
    }
    return self;
}

@end
